/*
创建时间: 2021/1/10 17:02
作者: zjy
功能介绍:

数据定义
*/

package apis

// 服务器状态
const (
	ServerStauts_None    = 0 //未知
	ServerStauts_Online  = 1 //在线
	ServerStauts_Offline = 2 //离线
	ServerStauts_Pause   = 3 //服务器维护
	ServerStauts_BeBusy  = 4 //忙碌
)

const (
	Upload_OnLine  = 1
	Upload_Num     = 2 //上传人数
	Upload_Offline = 3 //上传离线
	Upload_Pause   = 4 //上传维护
)

type UploadLoinInfo struct {
	LoginInfo  *SeverInfo
	UploadType int8 `form:"ut"`
}

type SeverInfo struct {
	AppID   int32  `json:"AppID" form:"AppID"`     //app标识
	AppKind int32  `json:"AppKind" form:"AppKind"` //app 类型
	Ip      string `json:"Ip" form:"Ip"`
	Port    int32  `json:"Port" form:"Port"`
	Num     int32  `form:"Num"`
	Status  int8   `form:Status`
}

// 映射json文件
type Vsersion struct {
	Version     []int32    `json:"Version"`
	RegisterUrl string     `json:"RegisterUrl"`
	CfgVersion  string     `json:"CfgVersion"`
	Info        *SeverInfo `json:"LoginServerInfo"`
}

var (
	serverinfo  Vsersion
	LoginServer []*SeverInfo
)
